package com.zsxb.crm.result;



import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 2024/10/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuTreeResult extends Result {
    //菜单树形层级列表
    private List menus;
    //已选中的菜单id集合
    private List<Long> checkedKeys;

    public static MenuTreeResult success(MenuTreeResult menuTreeResult) {
        MenuTreeResult result = new MenuTreeResult();
        result.setCode(200);
        result.menus = menuTreeResult.getMenus();
        result.checkedKeys = menuTreeResult.getCheckedKeys();
        result.setMsg("查询成功");
        return result;
    }

}
